<?php 
class Country_Widget_InviteMemberController extends Engine_Content_Widget_Abstract{
    public function indexAction(){
        $request = Zend_Controller_Front::getInstance()->getRequest();
         $subject = null;
         if( Engine_Api::_()->core()->hasSubject() ) {
           // Get subject
           $subject = Engine_Api::_()->core()->getSubject();
          
         }
         if (!$subject) {
            return $this->setNoRender();
         }
         
         $viewer = Engine_Api::_()->user()->getViewer();
         if($subject->owner_id != $viewer->getIdentity()){
            return $this->setNoRender();
         }
         
         $this->view->country_id = $subject->getIdentity();
    }
}
?>